# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=vinegar
pkgver=1.7.7
pkgrel=0
pkgdesc="An open-source, minimal, configurable, fast bootstrapper for running Roblox on Linux"
url="https://vinegarhq.org"
arch="x86_64" # Roblox only has binaries for x86_64 on windows
license="GPL-3.0-only"
depends="cmd:wine"
makedepends="
	go
	make
	mesa-dev
	libxkbcommon-dev
	libxcursor-dev
	wayland-dev
	vulkan-loader-dev
	vulkan-validation-layers-dev
"
source="$pkgname-$pkgver.tar.gz::https://github.com/vinegarhq/vinegar/archive/refs/tags/v$pkgver.tar.gz"
options="net"

build() {
	make
}

check() {
	make tests
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4cb7e4e70f6ff0bb8f807f2b89367e22ccc29d3e88eabb51fe3d5f40fb6635e0de600e4434ac5c4024c714123c48c637961a6e06435f2a2ae323d6c9e196426b  vinegar-1.7.7.tar.gz
"
